#!/bin/sh
if [ -t 1 ]
then
  rg "$@" -p | pager
else
  rg "$@"
fi
